package com.yonyou.pmclouds.safetyrectification.rectificationrecord.service;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.safetyrectification.rectificationrecord.entity.RectificationRecordVO;

import java.util.List;

/**
 * 安全整改-整改记录查询接口
 *
 * @author tanghuan
 * @date 2019/10/26
 */
public interface IRectiRecordQuery {
    /**
     * 通过主键查询
     *
     * @param id
     * @return
     * @throws BusinessException
     */
    RectificationRecordVO getById(String id) throws BusinessException;

    /**
     * 通过单据查询
     *
     * @param pkBill
     * @return
     * @throws BusinessException
     */
    List<RectificationRecordVO> getByPkBill(String pkBill) throws BusinessException;

    /**
     * 通过单据和整改状态查询
     *
     * @param pkBill
     * @param status
     * @return
     * @throws BusinessException
     */
    List<RectificationRecordVO> getByBillAndStatus(String pkBill, byte status) throws BusinessException;

}
